-
Notifications
You must be signed in to change notification settings - Fork 952
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use remix plugin 0.3 #511
Use remix plugin 0.3 #511
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In PluginManager rename :
canActivate
tocanActivatePlugin
canDeactivate
tocanDeactivatePlugin
apps/remix-ide/package.json
Outdated
@@ -80,7 +80,7 @@ | |||
"yo-yoify": "^3.7.3" | |||
}, | |||
"dependencies": { | |||
"@remixproject/engine": "^0.2.5", | |||
"@remixproject/engine-web": "^0.2.5", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be 0.3.0
273560c
to
cb35ede
Compare
9606207
to
e8c9989
Compare
568b653
to
f16c126
Compare
30a92a6
to
51576ba
Compare
@@ -2,7 +2,8 @@ const yo = require('yo-yo') | |||
const csjs = require('csjs-inject') | |||
const EventEmitter = require('events') | |||
const LocalPlugin = require('./local-plugin') | |||
import { ViewPlugin, IframePlugin, WebsocketPlugin } from '@remixproject/engine' | |||
import { IframePlugin, WebsocketPlugin } from '@remixproject/engine-web' | |||
import { ViewPlugin } from '@remixproject/engine' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In 0.3.3 this should come from engine-web too
@@ -61,7 +61,7 @@ class DebuggerTab extends ViewPlugin { | |||
|
|||
this.renderComponent() | |||
|
|||
this.call('manager', 'activatePlugin', 'source-verification').catch(e => console.log(e.message)) | |||
// this.call('manager', 'activatePlugin', 'source-verification').catch(e => console.error(e)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove
async canActivate (from, to) { | ||
return canActivate(from.name) | ||
async canActivatePlugin (from, to) { | ||
return true // canActivate(from.name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any plugin can activate another ?
} | ||
|
||
async canDeactivate (from, to) { | ||
async canDeactivatePlugin (from, to) { | ||
console.log('canDeactivatePlugin', from, to) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe remove console.log
onRegistration (plugin) { | ||
this.event.emit('added', plugin.name) | ||
onRegistration () { | ||
console.log('manager has been registered') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
}) | ||
return plugins.map(plugin => { | ||
if (plugin.name === 'scriptRunner') { | ||
plugin.url = 'ipfs://QmRWBCgCzKa1ixoVN9mvJACVuqWLRTRYS4sUJ9wzUBRHSf' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not setting it directly in the profile above ?
libs/remixd/package.json
Outdated
"@remixproject/plugin-api": "0.3.0-beta.5", | ||
"@remixproject/plugin-utils": "0.3.0-beta.5", | ||
"@remixproject/plugin-ws": "^0.3.0-beta.8", | ||
"@remixproject/plugin": "^0.3.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use version 0.3.3
a8bef89
to
79efc01
Compare
6c91dcc
to
76818ec
Compare
No description provided.